package com.ruoyi.bysj.controller;


import com.ruoyi.bysj.service.ISysDeliveryService;
import com.ruoyi.bysj.service.ISysStatisticsService;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/bysj/statistics")
public class SysStatisticsController extends BaseController
{

    @Autowired
    private ISysStatisticsService sysStatisticsService;


    @PreAuthorize("@ss.hasPermi('bysj:statistics:list')")
    @GetMapping("/list")
    public AjaxResult getInfo()
    {
        return AjaxResult.success(sysStatisticsService.selectSysStatisticsByUserName(getUsername()));
    }

}
